package l1j.opqlo.AutoPay;

import java.sql.Timestamp;

public class AutoPay_temp {

	private int _itemId;
	private int _count;
	private int _enchantLv;
	private int _bless;
	private int _price;
	private long _deadline;
	private int _lv;

	public int getBless() {
		return this._bless;
	}

	public long getDeadLine() {
		return this._deadline;
	}

	public int getEnchantLv() {
		return this._enchantLv;
	}

	public int getItemId() {
		return this._itemId;
	}

	public int getTotalCount(final int price) {

		final int rate = price / this._price;
		if (rate > 0) {
			return rate * this._count;
		}

		return rate;
	}

	public void setBless(final int i) {
		this._bless = i;
	}

	public void setCount(final int i) {
		this._count = i;
	}

	public void setDeadLine(final Timestamp time) {
		if (time == null) {
			this._deadline = 0;
			return;
		}
		this._deadline = time.getTime();
	}

	public void setEnchantLv(final int i) {
		this._enchantLv = i;
	}

	public void setItemId(final int i) {
		this._itemId = i;
	}

	// pc.setBirthday(rs.getTimestamp("birthday"));

	public void setPrice(final int i) {
		this._price = i;
	}
	
	public void setLv(final int i){
		_lv = i;
	}
	public int getLv(){
		return _lv;
	}

}
